﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;
using FluentNHibernate.Mapping;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class SectionTypeMap : ClassMap<SectionType>
    {
        public SectionTypeMap()
        {
            Table("SectionType");

            Id(x => x.SectionTypeID).GeneratedBy.Identity().Unique();

            Map(x => x.Name).Not.Nullable().CustomType(typeof(string));
        }
    }
}
